
#pragma once

#include <TCHAR.H>
#include <il/il.h>
#include <il/ilu.h>
#include <il/ilut.h>

#pragma comment( lib,"DevIL.lib" )
#pragma comment( lib,"ILU.lib" )
#pragma comment( lib,"ILUT.lib" )

#include "Renderer/OpenGL.h"


class ILimage
{
public:
	ILstring m_fileName;
	ILinfo m_imageInfo;
public:
	ILimage();
	static bool InitLibraray();
	bool LoadFile( const TCHAR* filename );
	int GetWidth();
	int GetHeight();
	int GetBpp();
	unsigned char* GetData();
	float GetPointHeight(int x,int y);
	GLbbox GetBoundingBox(RECT& rc);
	void Free();
};


